<template>
	<view>
		<u-navbar :fixed="true" :placeholder="true" title="维保详情" @leftClick="leftClick" bgColor="#0F53AC"
			leftIconColor="#fff">
		</u-navbar>
		<u-sticky bgColor="#fff">
			<u-tabs :list="tabList" lineWidth="80" lineColor="#0F53AC" :activeStyle="activeStyle" :scrollable="false"
				:inactiveStyle="inactiveStyle" :itemStyle="itemStyle" @click="tabsClick" :current="current">
			</u-tabs>
		</u-sticky>
		<u-gap height="1" bgColor="#f2f2f2"></u-gap>
		<view v-show="current == 0">
			<view class="detail-title white-bg detail-title-border">
				<view class="left-title">设备名称</view>
				<view class="right-title">{{ listInfo.deviceName }}</view>
			</view>
			<view class="detail-title white-bg detail-title-border">
				<view class="left-title">设备编号</view>
				<view class="right-title">{{ listInfo.deviceNum }}</view>
			</view>
			<view class="detail-title white-bg detail-title-border">
				<view class="left-title">计划开始时间</view>
				<view class="right-title">{{ listInfo.planBeginDate }}</view>
			</view>
			<u-gap height="8" bgColor="#f2f2f2"></u-gap>
			<view class="weibao" v-for="(item, index) in listInfo.maintainItemRequests" :key="index">
				<u-gap height="1" bgColor="#f2f2f2" v-if="index > 0"></u-gap>
				<view class="weibao-item">
					<view class="item-top">
						<view class="left">
							<view style="color: red;">*</view>{{ index + 1 }}.{{ item.itemName }}
						</view>
						<view
							:class="[item.maintainResult == 1 ? 'right' : item.maintainResult == 2 ? 'right2' : 'right3']">
							{{ item.maintainResult == 1 ? '正常' : item.maintainResult == 2 ? '异常' : '待选择' }}
						</view>
					</view>
					<view class="item-bottom">
						{{ item.content }}
					</view>
					<view class="item-radio">
						<u-radio-group v-model="item.maintainResult" @change="changeSelect(item)">
							<u-radio shape="circle" label="正常" name="1" activeColor="#0F53AC" size="16" labelSize="15">
							</u-radio>
							<u-radio shape="circle" label="异常" name="2" activeColor="#0F53AC" size="16" labelSize="15"
								:customStyle="{ marginLeft: '100rpx' }"></u-radio>
						</u-radio-group>
					</view>
				</view>
				<view v-if="item.maintainResult == 2" class="bx-list"
					style="margin-top: 2rpx; border-bottom: 1px solid #f2f2f2;">
					<view class="padding4">
						<u-gap height="1" bgColor="#f2f2f2"></u-gap>
					</view>
					<view class="bx-list-title" @click="togoUnusualpage(item)">
						<view class="left">
							<view style="color: red;">*</view>异常信息填写
						</view>
						<view class="right1 color4" v-if="item.dealWay != '' && item.dealUserName != ''">
							<view class="">已填写</view>
							<view class="iconfont icon-app-xiangyou"></view>
						</view>
						<view class="right1" v-else>
							<view>未填写</view>
							<view class="iconfont icon-app-xiangyou"></view>
						</view>
					</view>
				</view>
			</view>
			<u-gap height="8" bgColor="#f2f2f2"></u-gap>
			<view class="bx-title" style="padding-top: 60rpx;">
				<view class="left">
					维保照片<view class="color5 font14">(可传视频或图片，最多9个)</view>
				</view>
			</view>
			<view class="bx-upload">
				<uploadVideo @getdata="getdata" @delete="deletePicture" :fileType="16" :file="file">

				</uploadVideo>
			</view>
			<u-gap height="1" bgColor="#f2f2f2"></u-gap>
			<view class="bx-list" style="margin-top: 2rpx; padding: 40rpx 0 10rpx 0;">
				<view class="bx-list-title">
					<view class="left">
						备注信息
					</view>
				</view>
				<view class="input-textrea">
					<u--textarea class="textrea" maxlength='320' v-model="params.remark" placeholder="请输入">
					</u--textarea>
				</view>
			</view>
			<view class="bx-title2">
				提示: 如果关联备件，需要审核后才可提交验证
			</view>

		</view>
		<view v-show="current == 1">
			<spareParts :bjapplyList="bjapplyList" :realName="dataParams.dealUserName"
				@addBeijianChange="addBeijianChange" @togoComfirApplybtn="togoComfirApplybtn"
				@deleteBjItem="deleteBjItem" @togoPeopleSelect="togoPeopleSelect(5)"></spareParts>

		</view>

		<view class="bottom-subside"></view>
		<view class="bx-bottom">
			<view class="btn-left" @click="$dianji(savaCurrentData, 'onoff')">返回并保存当前</view>
			<view class="btn-right" @click="$dianji(togoConfirmchange, 'onoff2')">提交</view>
		</view>
	</view>
</template>

<script>
	import uploadVideo from '@/components/uploadVideo/index.vue'
	export default {
		components: {
			uploadVideo
		},
		data() {
			return {
				onoff: true,
				onoff2: true,
				topheight: 0,
				value: '',
				activeStyle: {
					color: '#0F53AC',
					fontWeight: 'bold',
					transform: 'scale(1.05)'
				},
				inactiveStyle: {
					color: '#8c8c8c',
					transform: 'scale(1)'
				},
				itemStyle: {
					paddingLeft: '30rpx',
					paddingRight: '30rpx',
					paddingTop: '24rpx',
					paddingBottom: '24rpx',
					height: '48rpx'
				},
				current: 0,
				tabList: [{
						name: '维保信息',
					},
					{
						name: '备件信息',
					}
				],
				bjapplyList: [],
				wxpeopleList5: {
					realName: '',
					id: ''
				},
				value1: "",
				value2: "",
				fileList: [],
				wbId: '',
				listInfo: {},
				params: {
					maintainItemList: [],
					maintainTaskId: '',
					maintainPictures: '',
					remark: ''
				},
				saveData: {},
				isSubmit: true, //是否提交
				pictrueList: [],
				fileList1: [],
				dataParams: {
					orderNum: '', //非必须 维修工单号
					approveStatus: '', //非必须 审核状态；0.待提交  1.待审核    2.已审核
					deviceId: '', //非必须 申请的设备id
					partApplyDetails: [], //非必须 维修工单号
					dealUser: '', //审核人Id
					dealUserName: ''
				},
				onoff: true,
				onoff2: true,
				taskOrderNum: '',
				confirm: false,
				file: '',
				//这里存储一下审核人id
				uid: '',
				uName: ''
			}
		},
		onLoad(options) {
			this.bjapplyList = []
			if (options) {
				this.wbId = options.id
				this.params.maintainTaskId = this.wbId;
				this.taskOrderNum = options.taskOrderNum;
			}
			this.getlistinfo()
			uni.$on('comList3', (data) => {
				this.dataParams.orderNum = this.taskOrderNum;
				this.bjapplyList = []
				if (data.length > 0) {
					data.forEach(s => {
						this.bjapplyList.push(s);
					})
				}
			})
			uni.$on('xiong', (data) => {
				this.saveData = data;
				if (this.saveData) {
					this.listInfo.maintainItemRequests.forEach(s => {
						if (this.saveData.itemList.id == s.id) {
							s.dealWay = this.saveData.dealWay;
							s.dealUser = this.saveData.dealUser;
							s.dealUserName = this.saveData.dealUserName;
							s.description = this.saveData.description ? this.saveData.description : '';
							s.pictures = this.saveData.pictures ? this.saveData.pictures : '';
						}
					})
					if (this.params.maintainItemList.length > 0) {
						this.params.maintainItemList.forEach(item => {
							if (this.saveData.itemList.id == item.id) {
								item.dealWay = this.saveData.dealWay;
								item.dealUser = this.saveData.dealUser;
								item.dealUserName = this.saveData.dealUserName;
								item.description = this.saveData.description;
								item.pictures = this.saveData.pictures;
							}
						})
						// this.getlistinfo()
					}
					//这里什么逻辑？？？？

					// if (this.listInfo.maintainItemRequests.length > 0) {
					// 	this.listInfo.maintainItemRequests.forEach(item => {
					// 		item.dealWay = this.saveData.dealWay;
					// 		item.dealUserName = this.saveData.dealUserName;
					// 	})
					// }

				}
			})
		},
		onShow() {
			if (this.wxpeopleList5 && this.wxpeopleList5.id) {
				this.dataParams.dealUser = this.wxpeopleList5.id;
				this.dataParams.dealUserName = this.wxpeopleList5.realName;
			}
		},
		methods: {
			tabsClick(e) {
				this.current = e.index
			},
			addBeijianChange() {
				uni.navigateTo({
					url: '/pages/subPackagesB/weiwaiRepair/bjselect?deviceType=' + this.listInfo.deviceType +
						'&bjType=2' + '&repairOrderNum=' + this.taskOrderNum + '&bjapplyList=' +
						encodeURIComponent(JSON.stringify(this.bjapplyList))
				})
			},
			changeSelect(e) {
				if (this.params.maintainItemList.length > 0) {
					this.params.maintainItemList.forEach(item => {
						if (item.id == e.id) {
							item.maintainResult = e.maintainResult;
						}
					})
				}
			},
			togoPeopleSelect(type) {
				if (type == 5) {
					if (this.bjapplyList.some(item => item.approveStatus != 0)) {
						uni.$u.toast('该状态不能修改审核人');
						return
					}
				}
				uni.navigateTo({
					url: '/pages/subPackagesC/list/peoplelist?type=' + type
				})
			},
			//删除备件
			deleteBjItem(e) {
				var that = this;
				uni.showModal({
					title: '提示',
					content: '确定删除该备件吗？',
					success: function(res) {
						if (res.confirm) {
							// that.bjapplyList.splice(e.index, 1);
							that.getDeletePart(e.item.id);
						} else if (res.cancel) {}
					}
				});

			},
			getDeletePart(id) {
				uni.$u.http.post(`/device/mobile/devicePartApply/deletePartApplyDetail/${id}`).then(
					res => {
						if (res.code == 0) {
							uni.$u.toast('删除成功')
							this.bjapplyList = res.data;
						}
					}).catch(err => {})
			},
			getlistinfo() {
				var that = this;
				uni.$u.http.get(`/device/mobile/deviceMaintainTask/getInfo/${that.wbId}`).then(res => {
					if (res.code == 0) {
						that.listInfo = res.data;
						//维保照片
						that.fileList1 = []
						if (that.listInfo.maintainPictures != "") {
							var pictures = that.listInfo.maintainPictures.split(',')
							pictures.forEach(s => {
								let dd = {
									url: s
								}
								that.fileList1.push(dd);
							})
						}
						that.params.maintainPictures = that.listInfo.maintainPictures;
						this.file = res.data.maintainPictures
						that.params.maintainItemList = []
						if (that.listInfo.maintainItemRequests.length > 0) {
							that.listInfo.maintainItemRequests.forEach(item => {
								let dd = {
									id: item.id,
									maintainResult: item.maintainResult, ////维保结果；1.正常  2.异
									dealWay: item.dealWay, //处理方式；1.维保处理    2.维保报修处理
									dealUser: item.dealUser, //异常处理人id
									dealUserName: item.dealUserName, //异常处理人姓名
									description: item.description, //异常描述
									pictures: item.pictures ///异常照片，多个之间用","分隔
								}
								that.params.maintainItemList.push(dd);
								if (item.maintainResult == 1) {
									item.maintainResult = "1";
								}
								if (item.maintainResult == 2) {
									item.maintainResult = "2";
								}


							})
						}
						//备件回显
						that.bjapplyList = [];
						if (that.listInfo.partList.length > 0) {
							that.listInfo.partList.forEach(s => {
								that.bjapplyList.push(s);
							})
						}
						that.dataParams.dealUser = res.data.dealUser;
						that.dataParams.dealUserName = res.data.dealUserName;
						that.params.remark = that.listInfo.remark

						this.uid = this.listInfo.dealUser;
						this.uName = this.listInfo.dealUserName;
					} else {
						uni.$u.toast(`${res.message}`)
					}
				}).catch(err => {
					uni.$u.toast(`${error}`)
				})
			},

			//跳转到异常信息页面
			togoUnusualpage(item) {
				uni.navigateTo({
					url: '/pages/subPackagesB/weibaoTask/unusualInfo?itemInfo=' + encodeURIComponent(JSON
						.stringify(item)) + '&type=1'
				})
			},
			chuliPictrue(pictrueList) {
				if (pictrueList.length > 0) {
					this.params.maintainPictures = "";
					let arry = []
					pictrueList.map(item => {
						arry.push(item)
						let dd = {
							url: item
						}
						this.fileList1.push(dd);
					})
					this.params.maintainPictures = arry.toString()
				}
			},
			deletePicture(e) {
				this.fileList1 = [];
				if (e.length > 0) {
					this.params.maintainPictures = "";
					let arry = []
					e.map(item => {
						arry.push(item)
						let dd = {
							url: item
						}
						this.fileList1.push(dd);
					})
					this.params.maintainPictures = arry.toString()
				}
			},
			getdata(e) {
				this.pictrueList = e;
				this.fileList1 = [];
				this.chuliPictrue(this.pictrueList)
			},

			//点击返回按钮
			leftClick() {
				var that = this;
				uni.showModal({
					title: '提示',
					content: '是否保存当前内容？',
					confirmText: '保存',
					cancelText: '不保存',
					success: function(res) {
						if (res.confirm) {
							that.getSaveCurrentList();
						} else if (res.cancel) {
							uni.navigateBack({
								delta: 1
							})
						}
					}
				});
			},

			//返回并保存当前
			savaCurrentData() {
				this.getSaveCurrentList();
			},
			getSaveCurrentList() {
				uni.$u.http.post(`/device/mobile/deviceMaintainItem/updateMaintainItem`, this.params).then(res => {
					if (res.code == 0) {
						uni.$u.toast('保存成功')
						setTimeout(() => {
							uni.navigateTo({
								url: '/pages/subPackagesB/weibaoTask/index'
							})
						}, 1000)
					}
				}).catch(err => {})
			},
			showTanchung() {
				if (!this.confirm) {
					this.confirm = true
					var that = this;
					uni.showModal({
						title: '提示',
						content: '当前有备件申请待提交，确定提交维保验证？',
						confirmText: '确定',
						cancelText: '取消',
						success: function(res) {
							if (res.confirm) {
								// that.togoComfirApplybtn();
								that.fix()
							} else if (res.cancel) {

							}
						}
					});
				}
				setTimeout(() => {
					this.confirm = false
				}, 3000)
			},
			fix() {
				uni.$u.http.get(
						`/device/mobile/devicePartApply/judgePartApply/${this.taskOrderNum}/2`)
					.then(res => {
						if (res.code == 0) {
							if (res.data) {
								this.getSubmitVerify()
							} else {
								uni.$u.toast(`${res.message}`)
								return
							}
						}
					}).catch(err => {
						uni.$u.toast(`${err}`)
					})
			},
			//提交验证
			togoConfirmchange() {
				this.isSubmit = true;
				if (this.params.maintainItemList.length == 0) {
					this.isSubmit = false;
					uni.$u.toast('没有可维保的项目内容')
					return
				}
				if (this.params.maintainItemList.length > 0) {
					//请记住foreach无法return 
					for (let i = 0; i < this.params.maintainItemList.length; i++) {
						if (this.params.maintainItemList[i].maintainResult == "") {
							uni.$u.toast('必填项不能为空')
							this.isSubmit = false;
							return
						}
						if (this.params.maintainItemList[i].maintainResult == '2') { //异常
							if (this.params.maintainItemList[i].dealWay == '') {
								uni.$u.toast('异常信息填写不能为空')
								this.isSubmit = false;
								return
							}
						}
					}
				}
				if (this.bjapplyList.length > 0) {
					// this.bjapplyList.forEach(item => {
					// 	if (item.approveStatus == 0) {
					// 		this.isSubmit = false;
					// 		this.showTanchung();
					// 		return
					// 	}
					// })
					for (let i = 0; i < this.bjapplyList.length; i++) {
						if (this.bjapplyList[i].approveStatus == 1) {
							this.isSubmit = false;
							return uni.$u.toast('当前有备件待审核，无法提交。')
						}
					}
					for (let i = 0; i < this.bjapplyList.length; i++) {
						if (this.bjapplyList[i].approveStatus == 0) {
							this.showTanchung();
							this.isSubmit = false;
							return
						}
					}
				}
				if (this.isSubmit) {
					uni.$u.http.get(
							`/device/mobile/devicePartApply/judgePartApply/${this.taskOrderNum}/2`)
						.then(res => {
							if (res.code == 0) {
								if (res.data) {
									this.getSubmitVerify()
								} else {
									uni.$u.toast(`${res.message}`)
									return
								}
							}
						}).catch(err => {
							uni.$u.toast(`${error}`)
						})
				}
			},
			getSubmitVerify() {
				uni.$u.http.post(`/device/mobile/deviceMaintainItem/submitMaintainItem`, this.params).then(res => {
					if (res.code == 0) {
						uni.$u.toast('提交成功')
						setTimeout(() => {
							uni.navigateTo({
								url: '/pages/subPackagesB/weibaoTask/index?current=' + 1
							})
						}, 1000)
					} else {
						uni.$u.toast(`${res.message}`)
					}
				}).catch(err => {
					uni.$u.toast(`${err}`)
				})
			},
			//提交申请
			togoComfirApplybtn() {
				if (!this.bjapplyList.filter(item => item.approveStatus == 0).length) {
					return uni.$u.toast('没有可提交的数据')
				}
				console.log(this.dataParams.dealUser);
				if (!this.dataParams.dealUser) return uni.$u.toast('请选择审核人员')
				if (this.uName && this.dataParams.dealUser !== this.uid) return uni.$u.toast(`当前审核人为${this.uName},请勿变更`)
				this.bjapplyList.forEach(item => {
					if (item.approveStatus == 0) {
						let dd = {
							partId: item.id,
							amount: item.totalAmount
						}
						this.dataParams.partApplyDetails.push(dd)
					}
				})
				this.dataParams.approveStatus = 1;
				this.dataParams.applyType = 2;
				this.dataParams.orderNum = this.taskOrderNum
				uni.$u.http.post(`/device/mobile/devicePartApply/savePartApply`, this.dataParams).then(
					res => {
						if (res.code == 0) {
							uni.$u.toast('提交成功')
							this.bjapplyList = res.data;
							// this.dataParams.dealUser = '';
							// this.wxpeopleList5.id = '';
							// this.wxpeopleList5.realName = '';
						}
					}).catch(err => {})
			},
		}
	}
</script>

<style lang="scss">
	page {
		height: 100vh;
		background: #FFFFFF;
	}

	.bx-list {
		background: #fff;

		.bx-list-title {
			display: flex;
			justify-content: space-between;
			align-items: center;
			padding: 30rpx;

			.left {
				display: flex;
				font-size: 32rpx;
				font-weight: 400;
				letter-spacing: 0px;
				line-height: 0px;
				color: rgba(0, 0, 0, 1);
				min-width: 30%;
			}

			.right {
				display: flex;
				justify-content: space-around;
				width: 50%;

				.sm-add {
					display: flex;
					align-items: center;
					padding: 10rpx 20rpx;
					border-radius: 24rpx;
					color: #0F53AC;
					background-color: rgba(2, 173, 130, 0.3);
					font-size: 24rpx;
				}

				.sm-sd {
					display: flex;
					align-items: center;
					padding: 10rpx 20rpx;
					border-radius: 24rpx;
					color: #0F53AC;
					background-color: rgba(2, 173, 130, 0.3);
					font-size: 24rpx;
				}
			}

			.right1 {
				display: flex;
				align-items: center;
				font-size: 34rpx;
				color: #8c8c8c;

				.right-input {
					width: 100%;
					text-align: right;
					display: flex;
					align-items: center;
				}
			}
		}

		.bx-info {
			display: flex;
			padding: 10rpx 20rpx 20rpx 20rpx;

			.left-icon {
				image {
					width: 96rpx;
					height: 96rpx;
				}
			}

			.right-txt {
				padding-left: 32rpx;

				.txt1 {
					color: #000000;
					font-size: 34rpx;
					font-weight: 400;
				}

				.txt2 {
					color: #8c8c8c;
					font-size: 28rpx;
					margin-top: 10rpx;
				}
			}

		}

		.input-textrea {
			margin: 20rpx;
			border-radius: 8rpx;
			background: #f2f2f2;

			.textrea {
				background: #f2f2f2;
			}
		}

	}

	.bx-title {
		background: #fff;
		padding: 20rpx;

		.left {
			display: flex;
			font-size: 32rpx;
			font-weight: 400;
			letter-spacing: 0px;
			line-height: 0px;
			color: #4D4D4D;
			background: #fff;
		}
	}

	.bx-upload {
		padding: 20rpx 30rpx;
		background: #fff;
	}

	.bx-title2 {
		color: #8c8c8c;
		font-size: 28rpx;
		padding: 10rpx 25rpx 0 25rpx !important;
		background: #FFFFFF;
		position: fixed;
		bottom: 210rpx;
		z-index: 9;
	}

	.bottom-subside {
		width: 100%;
		height: 280rpx;
	}

	.bx-bottom {
		width: 100%;
		background: #FFFFFF;
		display: flex;
		justify-content: space-around;
		align-items: center;
		padding: 34rpx 0 80rpx 0;
		position: fixed;
		z-index: 9;
		bottom: 0;

		.btn-left {
			width: 45%;
			height: 92rpx;
			border-radius: 12rpx;
			background: #ffffff;
			display: flex;
			justify-content: center;
			align-items: center;
			color: #0F53AC;
			border: 1px solid #0F53AC;
			font-size: 34rpx;
			font-weight: 500;
			letter-spacing: 0px;
			line-height: 0px;
		}

		.btn-right {
			width: 45%;
			height: 90rpx;
			border-radius: 12rpx;
			background: #0F53AC;
			display: flex;
			justify-content: center;
			align-items: center;
			color: #fff;
			font-size: 34rpx;
			font-weight: 500;
			letter-spacing: 0px;
			line-height: 0px;
			border: 1px solid #0F53AC;
		}
	}

	.tab-list {
		display: flex;
		padding: 20rpx 0 20rpx 20rpx;
		border-radius: 8rpx;
		background: #f2f2f2;
		margin-top: 20rpx;

		.tab-left {
			border-radius: 8rpx;
			display: flex;
			align-items: center;

			image {
				width: 96rpx;
				height: 96rpx;
				border-radius: 8rpx;
			}
		}

		.tab-right {
			width: 100%;
			padding: 0 10rpx;
			display: flex;
			align-items: center;
			justify-content: space-between;

			.data-txt {
				.txt1 {
					font-size: 34rpx;
					color: #000000;
				}

				.txt2 {
					font-size: 28rpx;
					color: #8c8c8c;
					margin-top: 10rpx;
				}
			}
		}

	}

	.add-file {
		display: flex;
		align-items: center;
		justify-content: center;
		border-radius: 12rpx;
		border: 1px solid #0F53AC;
		margin-top: 30rpx;
		padding: 20rpx 0;
		color: #0F53AC;
	}

	.not-data {
		background: #ffffff;
		display: flex;
		align-items: center;
		justify-content: center;
		flex-direction: column;
		margin-top: 2rpx;
		padding: 100rpx 0;

		image {
			width: 224rpx;
			height: 172rpx;
		}

		.txt1 {
			font-size: 30rpx;
			color: #8c8c8c;
			padding-top: 40rpx;
		}

		.txt2 {
			font-size: 34rpx;
			color: #0F53AC;
			margin-top: 40rpx;
			border: 1px solid #0F53AC;
			border-radius: 12rpx;
			padding: 20rpx 80rpx;
		}
	}

	.search-title {
		display: flex;
		justify-content: space-between;
		align-items: center;
		font-size: 24rpx;
		color: #8c8c8c;
		padding: 20rpx 30rpx;
	}

	.search-list {
		background: #fff;
		margin-top: 2rpx;


		.search-item {
			padding: 30rpx;
			border-bottom: 1px solid #f2f2f2;

			.item-top {
				display: flex;
				align-items: center;

				.item-name {
					color: #000000;
					font-size: 34rpx;
				}

				.item-txt {
					padding: 20rpx 0 20rpx 10rpx;
					display: flex;
					width: 100%;

					.left-icon {
						border-radius: 8rpx;

						image {
							width: 152rpx;
							height: 152rpx;
							border-radius: 8rpx;
						}
					}

					.right-txt {
						padding-left: 32rpx;
						width: 100%;

						.txt-left {
							display: flex;
							// align-items: center;
							justify-content: space-between;

							.txt1 {
								width: 400rpx;
								height: 75rpx;
								font-size: 34rpx;
								color: #000000;
								padding-bottom: 20rpx;
								overflow: hidden;
								text-overflow: ellipsis;
								display: -webkit-box;
								-webkit-box-orient: vertical;
								-webkit-line-clamp: 2;
							}

							.txt-status {
								font-size: 30rpx;
								color: #1962e0;
							}
						}

						.txt-right {
							display: flex;
							align-items: center;
							justify-content: space-between;
							padding-top: 10rpx;

							.txt2 {
								font-size: 28rpx;
								color: #8c8c8c;
							}

							.addnum {
								font-size: 28rpx;
								color: #000000;
							}
						}
					}
				}

			}


		}
	}

	.search-btn {
		display: flex;
		justify-content: space-around;
		align-items: center;
		padding: 30rpx;
		background: #ffffff;

		.btn {
			border: 1px solid #0F53AC;
			color: #0F53AC;
			font-size: 34rpx;
			border-radius: 12rpx;
			padding: 20rpx 0;
			width: 40%;
			text-align: center;

		}
	}

	.weibao {
		// padding: 30rpx;
		background: #ffffff;

		.weibao-item {
			display: flex;
			flex-direction: column;
			padding: 30rpx;
			// border-bottom: 1px solid #f2f2f2;

			.item-top {
				font-size: 32rpx;
				width: 100%;
				display: flex;
				justify-content: space-between;
				// align-items: center;
				color: #2b2b2b;

				.left {
					width: 85%;
					display: flex;
					word-break: break-all;
					word-wrap: break-word;
				}

				.right {
					color: #02AD82;
				}

				.right2 {
					color: #FF4D4D;
				}

				.right3 {
					color: #8C8C8C;
				}
			}

			.item-bottom {
				font-size: 32rpx;
				color: #4D4D4D;
				margin-top: 20rpx;
			}

			.item-radio {
				display: flex;
				align-items: center;
				margin-top: 30rpx;

				.left-radio {
					display: flex;
					align-items: center;
					font-size: 30rpx;
					color: #2b2b2b;

					.select-bg {
						color: #0F53AC;
						font-size: 40rpx;
					}
				}

				.right-radio {
					display: flex;
					align-items: center;
					font-size: 30rpx;
					color: #2b2b2b;
					margin-left: 100rpx;
				}
			}
		}
	}

	.u-empty .u-icon {
		z-index: -1;
	}

	.u-tabs__wrapper__nav__item {
		// padding: 0 !important;
		width: 50%;
	}
</style>
